package com.opmsys.service;

import com.opmsys.pojo.dto.PagingSearchAboutMaintain;
import com.opmsys.pojo.entity.Maintain;

import java.util.List;

public interface MaintainService {

    /**
     * 新增保养记录
     * @param maintain
     * @return
     */
    public boolean addMaintain(Maintain maintain);

    /**
     * 更新保养记录
     * @param maintain
     * @return
     */
    public boolean upateMaintain(Maintain maintain);

    /**
     * 分页查询保养记录
     * @param pagingSearchAboutMaintain
     * @return
     */
    public List<Maintain> selectMaintain(PagingSearchAboutMaintain pagingSearchAboutMaintain);

    /**
     * 批量删除保养记录
     * @param idList
     * @return
     */
    public int deleteMaintain(List<Integer> idList);

    /**
     * 获取分页前按条件查询的全部记录数
     * @param pagingSearchAboutMaintain
     * @return
     */
    int pageTotal(PagingSearchAboutMaintain pagingSearchAboutMaintain);
}
